import request from "@/utils/request";
export const getPostList = function (data) {
  return request('/forum/getPostList', "post", data)
}

export const inset = function (data) {
  return request('/forum/inset', "post", data)
}
export const update = function (data) {
  return request('/forum/update', "post", data)
}
export const deleteApi = function (id) {
  return request('/forum/delete', "get", { id })
}
export const getDifferentSubjectInCountFn = function () {
  return request('/forum/getDifferentSubjectInCountFn', "get")
}
export const getList = function (data) {
  return request('/forum/getList', "post", data)
}
export const getHotSort = function () {
  return request('/forum/getHotSort', "get")
}
export const getPostInfo = function (id) {
  return request('/forum/getPostInfo', "get", { id })
}

